package tpf.designer.pattern.course8.behavior_pattern3.homework;

public class NotNode implements Node {

    private boolean value;

    public NotNode(boolean value) {
        this.value = value;
    }

    @Override
    public boolean interpret() {
        return !this.value;
    }
}
